package priv.yiyuan.example.design.device;

/**
 * 电视机
 * <p>
 * 桥接模式(具体实现者)
 */
public class Television implements PlaybackDevice {

    private String name;

    public Television(String name) {
        this.name = name;
    }

    @Override
    public void play(String mediaType, String content) {
        System.out.println(name + " 电视机播放 " + mediaType + " : " + content);
    }

    @Override
    public void stop() {
        System.out.println(name + " 电视机停止播放.");
    }
}
